package db.dao;

import java.util.HashSet;
import java.util.Set;

/**
 * Major entity. @author MyEclipse Persistence Tools
 */

public class Major implements java.io.Serializable {

	// Fields

	private String majorid;
	private Dept dept;
	private String majorname;
	private Set classeses = new HashSet(0);
	private Set students = new HashSet(0);

	// Constructors

	/** default constructor */
	public Major() {
	}

	/** minimal constructor */
	public Major(String majorid, String majorname) {
		this.majorid = majorid;
		this.majorname = majorname;
	}

	/** full constructor */
	public Major(String majorid, Dept dept, String majorname, Set classeses, Set students) {
		this.majorid = majorid;
		this.dept = dept;
		this.majorname = majorname;
		this.classeses = classeses;
		this.students = students;
	}

	// Property accessors

	public String getMajorid() {
		return this.majorid;
	}

	public void setMajorid(String majorid) {
		this.majorid = majorid;
	}

	public Dept getDept() {
		return this.dept;
	}

	public void setDept(Dept dept) {
		this.dept = dept;
	}

	public String getMajorname() {
		return this.majorname;
	}

	public void setMajorname(String majorname) {
		this.majorname = majorname;
	}

	public Set getClasseses() {
		return this.classeses;
	}

	public void setClasseses(Set classeses) {
		this.classeses = classeses;
	}

	public Set getStudents() {
		return this.students;
	}

	public void setStudents(Set students) {
		this.students = students;
	}

}